var express = require('express');
var app = express();
var route = require("./routes/index");
app.listen(3000, function() {
	console.log('Express server listening on port :3000' );
});
app.use(express.static('public'));
app.use(route);

//var http = require('http');
//var url = require('url');
//var util = require('util');
//var server=new http.Server();
//http.createServer(function(req,res){
//	res.writeHead(200,{'Content-Type':'text/plain'});
//	res.end(util.inspect(url.parse(req.url,true)));
//}).listen(3000);
//console.log('HTTP SERVER is LISTENING AT PORT 3000.');